package com.example.service.impl;

import com.example.service.HelloService;
import org.apache.dubbo.config.annotation.Service;

/**
 * @author lbq
 * @version 1.0
 * @date 2021/2/27 20:22
 */
@Service
public class HelloServiceImpl implements HelloService {

    @Override
    public String sayHello(String name) {
        return "hello " + name;
    }

    @Override
    public String methodA(int mills) {
        try {
            Thread.sleep(mills);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "this is method A!!!";
    }

    @Override
    public String methodB(int mills) {
        try {
            Thread.sleep(mills);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "this is method B!!!";
    }

    @Override
    public String methodC(int mills) {
        try {
            Thread.sleep(mills);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "this is method C!!!";
    }
}
